import time

from crawler.connection import filter_push_redis, redis_shedana, redis_conn

url_list = [
    {'category': 'Clothing>>Activewear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/activewear',
     'sex': 'women'},
    {'category': 'Clothing>>All-in-ones', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/all-in-ones',
     'sex': 'women'},
    {'category': 'Clothing>>Beachwear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/beachwear',
     'sex': 'women'},
    {'category': 'Clothing>>Bridal', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/bridal',
     'sex': 'women'},
    {'category': 'Clothing>>Coats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/coats',
     'sex': 'women'},
    {'category': 'Clothing>>Denim', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/denim',
     'sex': 'women'},
    {'category': 'Clothing>>Dresses', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/dresses',
     'sex': 'women'},
    {'category': 'Clothing>>Jackets', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/jackets',
     'sex': 'women'},
    {'category': 'Clothing>>Jeans', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/jeans',
     'sex': 'women'},
    {'category': 'Clothing>>Knitwear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/knitwear',
     'sex': 'women'},
    {'category': 'Clothing>>Lingerie', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/lingerie',
     'sex': 'women'},
    {'category': 'Clothing>>Loungewear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/loungewear',
     'sex': 'women'},
    {'category': 'Clothing>>Shorts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/shorts',
     'sex': 'women'}, {'category': 'Clothing>>Ski-clothing',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/ski-clothing', 'sex': 'women'},
    {'category': 'Clothing>>Skirts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/skirts',
     'sex': 'women'},
    {'category': 'Clothing>>Suits', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/suits',
     'sex': 'women'},
    {'category': 'Clothing>>Tops', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/tops',
     'sex': 'women'},
    {'category': 'Clothing>>Trousers', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/trousers',
     'sex': 'women'}, {'category': 'Clothing>>Clothing',
                       'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/clothing',
                       'sex': 'women'}, {'category': 'Clothing>>For-the-outdoors',
                                         'url': 'https://www.matchesfashion.com/intl/womens/lists/for-the-outdoors',
                                         'sex': 'women'},
    {'category': 'Clothing>>For-skiing', 'url': 'https://www.matchesfashion.com/intl/womens/lists/for-skiing',
     'sex': 'women'}, {'category': 'Clothing>>Wardrobe-foundations',
                       'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations', 'sex': 'women'},
    {'category': 'Clothing>>Wedding-guest', 'url': 'https://www.matchesfashion.com/intl/womens/lists/wedding-guest',
     'sex': 'women'}, {'category': 'Clothing>>Dressing-for-sun',
                       'url': 'https://www.matchesfashion.com/intl/womens/lists/dressing-for-sun', 'sex': 'women'},
    {'category': 'Clothing>>Modern-workwear', 'url': 'https://www.matchesfashion.com/intl/womens/lists/modern-workwear',
     'sex': 'women'},
    {'category': 'Shoes>>Boots', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/boots', 'sex': 'women'},
    {'category': 'Shoes>>Espadrilles', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/espadrilles',
     'sex': 'women'},
    {'category': 'Shoes>>Flats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/flats', 'sex': 'women'},
    {'category': 'Shoes>>Heels', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/heels', 'sex': 'women'},
    {'category': 'Shoes>>Sandals', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/sandals',
     'sex': 'women'},
    {'category': 'Shoes>>Sneakers', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/sneakers',
     'sex': 'women'},
    {'category': 'Shoes>>Shoes', 'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/shoes',
     'sex': 'women'},
    {'category': 'Shoes>>Shoes', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon/shoes',
     'sex': 'women'},
    {'category': 'Shoes>>Shoes', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/shoes',
     'sex': 'women'},
    {'category': 'Bags>>Backpacks', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/backpacks',
     'sex': 'women'},
    {'category': 'Bags>>Beach-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/beach-bags',
     'sex': 'women'},
    {'category': 'Bags>>Belt-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/belt-bags',
     'sex': 'women'},
    {'category': 'Bags>>Bucket-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/bucket-bags',
     'sex': 'women'},
    {'category': 'Bags>>Clutch-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/clutch-bags',
     'sex': 'women'},
    {'category': 'Bags>>Cross-body-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/cross-body-bags',
     'sex': 'women'},
    {'category': 'Bags>>Evening-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/evening-bags',
     'sex': 'women'},
    {'category': 'Bags>>Travel-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/travel-bags',
     'sex': 'women'},
    {'category': 'Bags>>Shoulder-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/shoulder-bags',
     'sex': 'women'},
    {'category': 'Bags>>Top-handle-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/top-handle-bags',
     'sex': 'women'},
    {'category': 'Bags>>Tote-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/tote-bags',
     'sex': 'women'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/bags',
     'sex': 'women'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon/bags',
     'sex': 'women'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/bags',
     'sex': 'women'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations/bags',
     'sex': 'women'},
    {'category': 'Accessories>>Belts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/belts',
     'sex': 'women'}, {'category': 'Accessories>>Card-holders',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/card-holders',
                       'sex': 'women'}, {'category': 'Accessories>>Cosmetic-cases',
                                         'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/cosmetic-cases',
                                         'sex': 'women'},
    {'category': 'Accessories>>Glasses', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/glasses',
     'sex': 'women'},
    {'category': 'Accessories>>Gloves', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/gloves',
     'sex': 'women'}, {'category': 'Accessories>>Hair-accessories',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/hair-accessories',
                       'sex': 'women'},
    {'category': 'Accessories>>Hats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/hats',
     'sex': 'women'},
    {'category': 'Accessories>>Keyrings', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/keyrings',
     'sex': 'women'},
    {'category': 'Accessories>>Scarves', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/scarves',
     'sex': 'women'},
    {'category': 'Accessories>>Socks', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/socks',
     'sex': 'women'}, {'category': 'Accessories>>Sunglasses',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/sunglasses', 'sex': 'women'},
    {'category': 'Accessories>>Technology',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/technology', 'sex': 'women'},
    {'category': 'Accessories>>Travel-accessories',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/travel-accessories', 'sex': 'women'},
    {'category': 'Accessories>>Wallets', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/wallets',
     'sex': 'women'},
    {'category': 'Accessories>>Watches', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/watches',
     'sex': 'women'}, {'category': 'Accessories>>Accessories',
                       'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/accessories',
                       'sex': 'women'}, {'category': 'Accessories>>Accessories',
                                         'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/accessories',
                                         'sex': 'women'}, {'category': 'Accessories>>Accessories',
                                                           'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations/accessories',
                                                           'sex': 'women'}, {'category': 'Accessories>>Fine-jewellery',
                                                                             'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery',
                                                                             'sex': 'women'},
    {'category': 'Accessories>>Fine-anklets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/fine-anklets', 'sex': 'women'},
    {'category': 'Accessories>>Bracelets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/bracelets', 'sex': 'women'},
    {'category': 'Accessories>>Earrings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/earrings', 'sex': 'women'},
    {'category': 'Accessories>>Necklaces',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/necklaces', 'sex': 'women'},
    {'category': 'Accessories>>Rings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/rings', 'sex': 'women'},
    {'category': 'Accessories>>Fine-watches',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/fine-watches', 'sex': 'women'},
    {'category': 'Accessories>>Jewellery',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery', 'sex': 'women'},
    {'category': 'Accessories>>Bracelets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/bracelets', 'sex': 'women'},
    {'category': 'Accessories>>Brooches',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/brooches', 'sex': 'women'},
    {'category': 'Accessories>>Earrings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/earrings', 'sex': 'women'},
    {'category': 'Accessories>>Necklaces',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/necklaces', 'sex': 'women'},
    {'category': 'Accessories>>Rings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/rings', 'sex': 'women'},
    {'category': 'Just in>>Just-in-this-month',
     'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month', 'sex': 'women'},
    {'category': 'Just in>>Coming-soon', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon',
     'sex': 'women'},
    {'category': 'Just in>>Exclusives', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives',
     'sex': 'women'},
    {'category': 'Clothing>>Activewear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/activewear',
     'sex': 'men'},
    {'category': 'Clothing>>Blazers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/blazers',
     'sex': 'men'},
    {'category': 'Clothing>>Coats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/coats',
     'sex': 'men'},
    {'category': 'Clothing>>Denim', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/denim',
     'sex': 'men'}, {'category': 'Clothing>>Coats-and-jackets',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/coats-and-jackets', 'sex': 'men'},
    {'category': 'Clothing>>Jeans', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/jeans',
     'sex': 'men'},
    {'category': 'Clothing>>Knitwear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/knitwear',
     'sex': 'men'},
    {'category': 'Clothing>>Loungewear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/loungewear',
     'sex': 'men'},
    {'category': 'Clothing>>Polo-shirts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/polo-shirts',
     'sex': 'men'}, {'category': 'Clothing>>Casual-shirts',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/casual-shirts', 'sex': 'men'},
    {'category': 'Clothing>>Shorts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/shorts',
     'sex': 'men'},
    {'category': 'Clothing>>Suits', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/suits',
     'sex': 'men'},
    {'category': 'Clothing>>Sweats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/sweats',
     'sex': 'men'},
    {'category': 'Clothing>>Swimwear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/swimwear',
     'sex': 'men'},
    {'category': 'Clothing>>T-shirts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/t-shirts',
     'sex': 'men'},
    {'category': 'Clothing>>Trousers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/trousers',
     'sex': 'men'}, {'category': 'Clothing>>Underwear-and-nightwear',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/underwear-and-nightwear',
                     'sex': 'men'}, {'category': 'Clothing>>Just-in-this-month',
                                     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month',
                                     'sex': 'men'}, {'category': 'Clothing>>The-activewear-edit',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/lists/the-activewear-edit',
                                                     'sex': 'men'},
    {'category': 'Clothing>>Eveningwear', 'url': 'https://www.matchesfashion.com/intl/mens/lists/eveningwear',
     'sex': 'men'}, {'category': 'Clothing>>Seasonal-must-haves',
                     'url': 'https://www.matchesfashion.com/intl/mens/lists/seasonal-must-haves', 'sex': 'men'},
    {'category': 'Clothing>>Wardrobe-foundations',
     'url': 'https://www.matchesfashion.com/intl/mens/lists/wardrobe-foundations', 'sex': 'men'},
    {'category': 'Clothing>>Modern-workwear', 'url': 'https://www.matchesfashion.com/intl/mens/lists/modern-workwear',
     'sex': 'men'},
    {'category': 'Clothing>>Dressing-for-sun', 'url': 'https://www.matchesfashion.com/intl/mens/lists/dressing-for-sun',
     'sex': 'men'},
    {'category': 'Shoes>>Boots', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/boots', 'sex': 'men'},
    {'category': 'Shoes>>Espadrilles', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/espadrilles',
     'sex': 'men'},
    {'category': 'Shoes>>Loafers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/loafers', 'sex': 'men'},
    {'category': 'Shoes>>Sandals', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sandals', 'sex': 'men'},
    {'category': 'Shoes>>Slippers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/slippers',
     'sex': 'men'},
    {'category': 'Shoes>>Dress-shoes', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/dress-shoes',
     'sex': 'men'},
    {'category': 'Shoes>>Sneakers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers',
     'sex': 'men'},
    {'category': 'Shoes>>Shoes', 'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/shoes',
     'sex': 'men'}, {'category': 'Shoes>>Sneakers',
                     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/shoes/sneakers',
                     'sex': 'men'},
    {'category': 'Shoes>>Icon-trainers', 'url': 'https://www.matchesfashion.com/intl/mens/lists/icon-trainers',
     'sex': 'men'}, {'category': 'Shoes>>High-top-sneakers',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/high-top-sneakers',
                     'sex': 'men'}, {'category': 'Shoes>>Low-top-sneakers',
                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/low-top-sneakers',
                                     'sex': 'men'}, {'category': 'Shoes>>Slip-on-sneakers',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/slip-on-sneakers',
                                                     'sex': 'men'},
    {'category': 'Bags>>Backpacks', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/backpacks',
     'sex': 'men'},
    {'category': 'Bags>>Belt-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/belt-bags',
     'sex': 'men'},
    {'category': 'Bags>>Briefcases', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/briefcases',
     'sex': 'men'},
    {'category': 'Bags>>Cross-body-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/cross-body-bags',
     'sex': 'men'},
    {'category': 'Bags>>Hand-held-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/hand-held-bags',
     'sex': 'men'},
    {'category': 'Bags>>Tote-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/tote-bags',
     'sex': 'men'},
    {'category': 'Bags>>Travel-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/travel-bags',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/bags',
     'sex': 'men'},
    {'category': 'Bags>>Homeware', 'url': 'https://www.matchesfashion.com/intl/mens/designers/bottega-veneta/homeware',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/burberry/bags', 'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/christian-louboutin/bags',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/gucci/bags', 'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/loewe/bags', 'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/maison-margiela/bags',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/paul-smith/bags',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/prada/bags', 'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/saint-laurent/bags',
     'sex': 'men'},
    {'category': 'Bags>>Bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/valentino/bags',
     'sex': 'men'}, {'category': 'Accessories>>Active-accessories',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/active-accessories',
                     'sex': 'men'},
    {'category': 'Accessories>>Belts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/belts',
     'sex': 'men'},
    {'category': 'Accessories>>Caps', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/hats/caps',
     'sex': 'men'}, {'category': 'Accessories>>Cufflinks-pins-and-clips',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/cufflinks-pins-and-clips',
                     'sex': 'men'},
    {'category': 'Accessories>>Glasses', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/glasses',
     'sex': 'men'},
    {'category': 'Accessories>>Gloves', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/gloves',
     'sex': 'men'},
    {'category': 'Accessories>>Hats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/hats',
     'sex': 'men'},
    {'category': 'Accessories>>Key-rings', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/key-rings',
     'sex': 'men'}, {'category': 'Accessories>>Pocket-squares',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/pocket-squares', 'sex': 'men'},
    {'category': 'Accessories>>Scarves', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/scarves',
     'sex': 'men'},
    {'category': 'Accessories>>Socks', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/socks',
     'sex': 'men'}, {'category': 'Accessories>>Sunglasses',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/sunglasses', 'sex': 'men'},
    {'category': 'Accessories>>Technology',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/technology', 'sex': 'men'},
    {'category': 'Accessories>>Ties', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/ties',
     'sex': 'men'}, {'category': 'Accessories>>Travel-accessories',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/travel-accessories',
                     'sex': 'men'},
    {'category': 'Accessories>>Wallets', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/wallets',
     'sex': 'men'}, {'category': 'Accessories>>Wash-bags',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/travel-bags/wash-bags', 'sex': 'men'},
    {'category': 'Accessories>>Accessories',
     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/accessories', 'sex': 'men'},
    {'category': 'Accessories>>Gifts', 'url': 'https://www.matchesfashion.com/intl/mens/lists/gifts', 'sex': 'men'},
    {'category': 'Accessories>>Jewellery', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery',
     'sex': 'men'}, {'category': 'Accessories>>Bracelets',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/bracelets',
                     'sex': 'men'}, {'category': 'Accessories>>Cufflinks',
                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/cufflinks',
                                     'sex': 'men'}, {'category': 'Accessories>>Earrings',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/earrings',
                                                     'sex': 'men'}, {'category': 'Accessories>>Fine-jewellery',
                                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/fine-jewellery',
                                                                     'sex': 'men'},
    {'category': 'Accessories>>Necklaces',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/necklaces', 'sex': 'men'},
    {'category': 'Accessories>>Rings',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/rings', 'sex': 'men'},
    {'category': 'Accessories>>Watches',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/watches', 'sex': 'men'}]

for index, info in enumerate(url_list):
    task = {
        "jobId": index,
        'info': info,
        # 'code': url,
        'domain': 'matchesfashion'.upper(),
        'filename': 'main',
        'types': 'electronic_business',
        "scheduleTime": int(time.time() * 1000),
        "triggerChannel": 'SONIC_SPIDER',
    }
    result = filter_push_redis(redis_conn, f'{task["types"]}_{task["filename"]}_{task["domain"]}', task)
    # result = filter_push_redis(redis_shedana, f'{task["types"]}_{task["filename"]}_{task["domain"]}', task)
    print(result)
    # input()
